]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
unlockDialog: Iconize the switch user button
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 14 Feb 2020 15:35:48 +0000 (12:35 -0300)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 14 Feb 2020 20:49:57 +0000 (20:49 +0000)
Make it look exactly the same as the login screen's session
selection button.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1006

data/theme/gnome-shell-sass/widgets/_login-dialog.scss
js/ui/unlockDialog.js

index 284a53b06cf597c55b6f579d2e6701c246bfdf69..c672e04144f2fbb890d5950336089bf110681e09 100644 (file)
@@ -70,6 +70,7 @@
   }
 
   .cancel-button,
+  .switch-user-button,
   .login-dialog-session-list-button {
     padding: 0;
     border-radius: 99px;
index eac655f32bfb3ee58c47cba62ef5956270ebb161..7a6c936121847c46abbf5f454e4c54147c7b03e4 100644 (file)
@@ -556,15 +556,13 @@ var UnlockDialog = GObject.registerClass({
         this._notificationsBox.connect('wake-up-screen', () => this.emit('wake-up-screen'));
 
         // Switch User button
-        let otherUserLabel = new St.Label({
-            text: _('Log in as another user'),
-            style_class: 'login-dialog-not-listed-label',
-        });
         this._otherUserButton = new St.Button({
-            style_class: 'login-dialog-not-listed-button',
+            style_class: 'modal-dialog-button button switch-user-button',
             can_focus: true,
-            child: otherUserLabel,
             reactive: true,
+            x_align: Clutter.ActorAlign.END,
+            y_align: Clutter.ActorAlign.END,
+            child: new St.Icon({ icon_name: 'system-users-symbolic' }),
         });
         this._otherUserButton.connect('clicked', this._otherUserClicked.bind(this));